string="167969729"
if "." in string:
    list1=string.split(".")
    str10=""
    for i in range(4):
        list1[i]=bin(int(list1[i]))
        list1[i]=str(list1[i]).replace("0b","")
        list1[i]=list1[i].rjust(8,"0")
        str10+=list1[i]
        print(str10)
    str10=str(int(str10,2))
    print(str10)
else:
    nums=int(string)
    nums2=bin(nums)
    str2=str(nums2)
    str2=str2.replace("0b","")
    # print(str2)
    str2=str2.rjust(32,"0")
    # print(str2)
    list2=[]
    for i in range(0,32,8):
        a=str2[i:i+8]
        a="0b"+a
        a=int(a,2)
        list2.append(a)
    print(f"{list2[0]}.{list2[1]}.{list2[2]}.{list2[3]}")
